import { request } from "../request";

export const apiSysFileUploadSignaturePostForm = (file?:Blob)=>{
    const url = '/api/sysFile/uploadSignature'
    const formData = new FormData()
    formData.append('file',file!)
    return request({
        method:"POST",
        url,
        data:formData,
        headers:{
            'Content-Type':'multipart/form-data'
        }
    })
}

export const apiSysFileUploadAvatarPostForm = (file?:Blob)=>{
    const url = '/api/sysFile/uploadAvatar'
    const formData = new FormData()
    formData.append('file',file!)
    return request({
        method:"POST",
        url,
        data:formData,
        headers:{
            'Content-Type':'multipart/form-data'
        }
    })
}